﻿package com.frontalcode
{
	import SWFAddress;
	import flash.display.*;
	import com.frontalcode.transitions.*;
	
	/**
	 * The DocumentComplete class handles the <document /> tag.
	 */
	public class DocumentComplete extends Document
	{
		/**
		 * Creates a new DocumentComplete instance.
		 * 
		 * <p>Options may be set through the constructor, the movie's URL or the
		 * movie's FlashVars parameter. The following options are supported:
		 * 	<table class="innertable">
		 * 		<tr><th>Option</th><th>Default</th><th>Description</th></tr>
		 * 		<tr><td>delayInitialResets</td><td>false</td><td>If true then initial resets will not be automatically dispatched.</td></tr>
		 * 		<tr><td>initiallyVisible</td><td>true</td><td>If false the document will not be automatically added to the stage.</td></tr>
		 * 		<tr><td>rendersPerFrameLimit</td><td>10</td><td>Maximum number of render iterations per frame.</td></tr>
		 * 		<tr><td>includeDefaultStylesheet</td><td>true</td><td>If false the default style sheet will not be included.</td></tr>
		 * 	</table>
		 * </p>  
		 *
		 * @param movieParent	The document this element belongs to.
		 * @param title			The element's parent in the document tree.
		 * @param options		Options affecting the behavior of this instance.
		 * 						(This object does not have built-in support for 
		 * 						any options.)
		 */
		public function DocumentComplete ( movieParent : DisplayObjectContainer, title : String = "untitled", options : Object = null )
		{
			super ( movieParent, title, options );
			
			var classRef : Class;
			
			classRef = Container;
			classRef = ContainerImage;
			classRef = ContainerVideo;
			classRef = ContainerText;
			classRef = ContainerManager;
			classRef = Transitioner;
			classRef = DocElemStyles;
			classRef = DocElemInclude;
			classRef = DocElemScript;
			classRef = DocElemTemplate;
			classRef = ContainerForm;
			classRef = ContainerInput;
			classRef = DocElemAlt;
			classRef = ExternalInterfaceManager;
			classRef = TweenTransition;
			classRef = SWFAddress;
		}
	}
}


